<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: example/state2.cpp 文件参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_cfafba98a580ce4b62f8a6fa96d7cbb0.html">example</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#enum-members">枚举</a> &#124;
<a href="#func-members">函数</a> &#124;
<a href="#var-members">变量</a>  </div>
  <div class="headertitle"><div class="title">state2.cpp 文件参考</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;iostream&gt;</code><br />
<code>#include &lt;functional&gt;</code><br />
<code>#include &quot;<a class="el" href="../../da/d3b/state_8hpp_source.html">designM/state.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="../../d2/d62/strategy_8hpp_source.html">designM/strategy.hpp</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
state2.cpp 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d3/ded/state2_8cpp__incl.png" border="0" usemap="#aexample_2state2_8cpp" alt=""/></div>
<map name="aexample_2state2_8cpp" id="aexample_2state2_8cpp">
<area shape="rect" title=" " alt="" coords="1052,5,1188,32"/>
<area shape="rect" title=" " alt="" coords="1132,155,1204,181"/>
<area shape="poly" title=" " alt="" coords="1127,32,1162,139,1157,141,1122,33"/>
<area shape="rect" title=" " alt="" coords="1061,229,1139,256"/>
<area shape="poly" title=" " alt="" coords="1122,33,1105,214,1100,214,1116,32"/>
<area shape="rect" href="../../da/d3b/state_8hpp.html" title=" " alt="" coords="869,80,998,107"/>
<area shape="poly" title=" " alt="" coords="1088,35,981,76,979,71,1087,30"/>
<area shape="rect" href="../../d2/d62/strategy_8hpp.html" title=" " alt="" coords="1206,80,1351,107"/>
<area shape="poly" title=" " alt="" coords="1149,30,1238,71,1236,75,1147,35"/>
<area shape="poly" title=" " alt="" coords="949,105,1076,217,1073,221,946,109"/>
<area shape="rect" title=" " alt="" coords="955,229,1037,256"/>
<area shape="poly" title=" " alt="" coords="944,106,970,154,991,213,986,215,966,156,939,108"/>
<area shape="rect" title=" " alt="" coords="782,229,850,256"/>
<area shape="poly" title=" " alt="" coords="925,109,837,219,833,216,921,106"/>
<area shape="rect" title=" " alt="" coords="910,155,956,181"/>
<area shape="poly" title=" " alt="" coords="936,107,936,139,931,139,931,107"/>
<area shape="rect" title=" " alt="" coords="874,229,931,256"/>
<area shape="poly" title=" " alt="" coords="926,109,912,130,901,155,898,185,900,214,895,214,892,185,896,154,907,127,921,106"/>
<area shape="rect" href="../../db/d94/mediator_8hpp.html" title=" " alt="" coords="577,155,727,181"/>
<area shape="poly" title=" " alt="" coords="885,110,717,153,715,148,884,105"/>
<area shape="poly" title=" " alt="" coords="727,176,871,196,1046,226,1046,231,870,202,727,181"/>
<area shape="poly" title=" " alt="" coords="716,179,940,226,939,231,715,184"/>
<area shape="poly" title=" " alt="" coords="682,179,774,220,772,225,679,184"/>
<area shape="poly" title=" " alt="" coords="698,179,859,226,858,231,696,184"/>
<area shape="rect" title=" " alt="" coords="402,229,505,256"/>
<area shape="poly" title=" " alt="" coords="618,184,503,226,501,221,616,179"/>
<area shape="rect" title=" " alt="" coords="530,229,604,256"/>
<area shape="poly" title=" " alt="" coords="639,184,594,221,591,217,635,180"/>
<area shape="rect" title=" " alt="" coords="627,229,677,256"/>
<area shape="poly" title=" " alt="" coords="655,182,655,214,649,214,649,182"/>
<area shape="rect" title=" " alt="" coords="701,229,758,256"/>
<area shape="poly" title=" " alt="" coords="667,180,707,217,703,221,664,184"/>
<area shape="rect" title=" " alt="" coords="5,229,131,256"/>
<area shape="poly" title=" " alt="" coords="577,180,386,201,147,232,146,226,385,196,576,175"/>
<area shape="rect" title=" " alt="" coords="155,229,213,256"/>
<area shape="poly" title=" " alt="" coords="577,179,420,199,229,232,228,226,420,193,576,174"/>
<area shape="rect" title=" " alt="" coords="237,229,294,256"/>
<area shape="poly" title=" " alt="" coords="577,182,455,202,309,231,308,226,454,197,576,177"/>
<area shape="rect" title=" " alt="" coords="318,229,378,256"/>
<area shape="poly" title=" " alt="" coords="593,185,394,231,393,226,592,179"/>
<area shape="poly" title=" " alt="" coords="1261,109,1201,148,1198,144,1258,105"/>
<area shape="poly" title=" " alt="" coords="1282,107,1279,144,1273,164,1262,183,1239,204,1211,219,1155,237,1153,232,1209,214,1236,199,1258,180,1268,162,1274,143,1277,107"/>
<area shape="poly" title=" " alt="" coords="1276,108,1254,145,1237,166,1217,184,1153,205,1053,231,1052,225,1151,200,1215,179,1234,162,1250,142,1271,105"/>
<area shape="rect" title=" " alt="" coords="1329,155,1439,181"/>
<area shape="poly" title=" " alt="" coords="1299,105,1355,143,1352,148,1296,109"/>
<area shape="rect" title=" " alt="" coords="1464,155,1528,181"/>
<area shape="poly" title=" " alt="" coords="1317,105,1450,149,1448,154,1316,110"/>
</map>
</div>
</div>
<p><a href="../../d0/d53/state2_8cpp_source.html">浏览该文件的源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="enum-members" name="enum-members"></a>
枚举</h2></td></tr>
<tr class="memitem:a05cbf65951166c4385cb47beb0c08ae7" id="r_a05cbf65951166c4385cb47beb0c08ae7"><td class="memItemLeft" align="right" valign="top">enum class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a05cbf65951166c4385cb47beb0c08ae7">MyState</a> { <br />
&#160;&#160;<a class="el" href="#a05cbf65951166c4385cb47beb0c08ae7a7bbe9acbfb3313d91f7a9ae015482467">STATE_A</a>
, <a class="el" href="#a05cbf65951166c4385cb47beb0c08ae7a9e5eaba6afeea332bb922c59665a8d41">STATE_B</a>
, <a class="el" href="#a05cbf65951166c4385cb47beb0c08ae7a3bd7f11954d8c9dc1395cb2500469115">STATE_C</a>
, <a class="el" href="#a05cbf65951166c4385cb47beb0c08ae7ab9825809950c987bdaf7378d2762436a">STATE_Start</a>
, <br />
&#160;&#160;<a class="el" href="#a05cbf65951166c4385cb47beb0c08ae7a7bbe9acbfb3313d91f7a9ae015482467">STATE_A</a>
, <a class="el" href="#a05cbf65951166c4385cb47beb0c08ae7a9e5eaba6afeea332bb922c59665a8d41">STATE_B</a>
, <a class="el" href="#a05cbf65951166c4385cb47beb0c08ae7a3bd7f11954d8c9dc1395cb2500469115">STATE_C</a>
, <a class="el" href="#a05cbf65951166c4385cb47beb0c08ae7aa04602404aa4a2e4138c5d7fa09b5973">STATE_End</a>
<br />
 }</td></tr>
<tr class="separator:a05cbf65951166c4385cb47beb0c08ae7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:ae66f6b31b5ad750f1fe042a706a4e3d4" id="r_ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a> ()</td></tr>
<tr class="separator:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="var-members" name="var-members"></a>
变量</h2></td></tr>
<tr class="memitem:a9c6c9c5d68b73a0d997b6d1d55adb6f6" id="r_a9c6c9c5d68b73a0d997b6d1d55adb6f6"><td class="memItemLeft" align="right" valign="top">const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9c6c9c5d68b73a0d997b6d1d55adb6f6">StartToA</a> = 0</td></tr>
<tr class="separator:a9c6c9c5d68b73a0d997b6d1d55adb6f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a443dbe923b7e8ca34a3d0cc6cba97517" id="r_a443dbe923b7e8ca34a3d0cc6cba97517"><td class="memItemLeft" align="right" valign="top">const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a443dbe923b7e8ca34a3d0cc6cba97517">AToB</a> = 1</td></tr>
<tr class="separator:a443dbe923b7e8ca34a3d0cc6cba97517"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d87a3ea6449e8c1dc432342c80ac3c8" id="r_a4d87a3ea6449e8c1dc432342c80ac3c8"><td class="memItemLeft" align="right" valign="top">const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a4d87a3ea6449e8c1dc432342c80ac3c8">BToC</a> = 2</td></tr>
<tr class="separator:a4d87a3ea6449e8c1dc432342c80ac3c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97abc5545c23056bdcaa14fedf9b4790" id="r_a97abc5545c23056bdcaa14fedf9b4790"><td class="memItemLeft" align="right" valign="top">const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a97abc5545c23056bdcaa14fedf9b4790">CTOEND</a> = 3</td></tr>
<tr class="separator:a97abc5545c23056bdcaa14fedf9b4790"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">枚举类型说明</h2>
<a id="a05cbf65951166c4385cb47beb0c08ae7" name="a05cbf65951166c4385cb47beb0c08ae7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a05cbf65951166c4385cb47beb0c08ae7">&#9670;&#160;</a></span>MyState</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">enum class <a class="el" href="../../da/da4/state_8cpp.html#a05cbf65951166c4385cb47beb0c08ae7">MyState</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="a05cbf65951166c4385cb47beb0c08ae7a7bbe9acbfb3313d91f7a9ae015482467" name="a05cbf65951166c4385cb47beb0c08ae7a7bbe9acbfb3313d91f7a9ae015482467"></a>STATE_A&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a05cbf65951166c4385cb47beb0c08ae7a9e5eaba6afeea332bb922c59665a8d41" name="a05cbf65951166c4385cb47beb0c08ae7a9e5eaba6afeea332bb922c59665a8d41"></a>STATE_B&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a05cbf65951166c4385cb47beb0c08ae7a3bd7f11954d8c9dc1395cb2500469115" name="a05cbf65951166c4385cb47beb0c08ae7a3bd7f11954d8c9dc1395cb2500469115"></a>STATE_C&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a05cbf65951166c4385cb47beb0c08ae7ab9825809950c987bdaf7378d2762436a" name="a05cbf65951166c4385cb47beb0c08ae7ab9825809950c987bdaf7378d2762436a"></a>STATE_Start&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a05cbf65951166c4385cb47beb0c08ae7a7bbe9acbfb3313d91f7a9ae015482467" name="a05cbf65951166c4385cb47beb0c08ae7a7bbe9acbfb3313d91f7a9ae015482467"></a>STATE_A&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a05cbf65951166c4385cb47beb0c08ae7a9e5eaba6afeea332bb922c59665a8d41" name="a05cbf65951166c4385cb47beb0c08ae7a9e5eaba6afeea332bb922c59665a8d41"></a>STATE_B&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a05cbf65951166c4385cb47beb0c08ae7a3bd7f11954d8c9dc1395cb2500469115" name="a05cbf65951166c4385cb47beb0c08ae7a3bd7f11954d8c9dc1395cb2500469115"></a>STATE_C&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a05cbf65951166c4385cb47beb0c08ae7aa04602404aa4a2e4138c5d7fa09b5973" name="a05cbf65951166c4385cb47beb0c08ae7aa04602404aa4a2e4138c5d7fa09b5973"></a>STATE_End&#160;</td><td class="fielddoc"></td></tr>
</table>

<p class="definition">在文件 <a class="el" href="../../d0/d53/state2_8cpp_source.html">state2.cpp</a> 第 <a class="el" href="../../d0/d53/state2_8cpp_source.html#l00009">9</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="ae66f6b31b5ad750f1fe042a706a4e3d4" name="ae66f6b31b5ad750f1fe042a706a4e3d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae66f6b31b5ad750f1fe042a706a4e3d4">&#9670;&#160;</a></span>main()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int main </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d0/d53/state2_8cpp_source.html">state2.cpp</a> 第 <a class="el" href="../../d0/d53/state2_8cpp_source.html#l00022">22</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">变量说明</h2>
<a id="a443dbe923b7e8ca34a3d0cc6cba97517" name="a443dbe923b7e8ca34a3d0cc6cba97517"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a443dbe923b7e8ca34a3d0cc6cba97517">&#9670;&#160;</a></span>AToB</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const int AToB = 1</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d0/d53/state2_8cpp_source.html">state2.cpp</a> 第 <a class="el" href="../../d0/d53/state2_8cpp_source.html#l00018">18</a> 行定义.</p>

</div>
</div>
<a id="a4d87a3ea6449e8c1dc432342c80ac3c8" name="a4d87a3ea6449e8c1dc432342c80ac3c8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4d87a3ea6449e8c1dc432342c80ac3c8">&#9670;&#160;</a></span>BToC</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const int BToC = 2</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d0/d53/state2_8cpp_source.html">state2.cpp</a> 第 <a class="el" href="../../d0/d53/state2_8cpp_source.html#l00019">19</a> 行定义.</p>

</div>
</div>
<a id="a97abc5545c23056bdcaa14fedf9b4790" name="a97abc5545c23056bdcaa14fedf9b4790"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a97abc5545c23056bdcaa14fedf9b4790">&#9670;&#160;</a></span>CTOEND</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const int CTOEND = 3</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d0/d53/state2_8cpp_source.html">state2.cpp</a> 第 <a class="el" href="../../d0/d53/state2_8cpp_source.html#l00020">20</a> 行定义.</p>

</div>
</div>
<a id="a9c6c9c5d68b73a0d997b6d1d55adb6f6" name="a9c6c9c5d68b73a0d997b6d1d55adb6f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9c6c9c5d68b73a0d997b6d1d55adb6f6">&#9670;&#160;</a></span>StartToA</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const int StartToA = 0</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d0/d53/state2_8cpp_source.html">state2.cpp</a> 第 <a class="el" href="../../d0/d53/state2_8cpp_source.html#l00017">17</a> 行定义.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
